package com.xja.dubbo.service;

import com.xja.dubbo.entity.Easybuy_seller;
import com.xja.dubbo.entity.Easybuy_user;
import com.xja.dubbo.entity.Easybuy_user_address;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;

/**
 * @author ycz
 * @create 2021-12-18-9:23
 */
public interface UserService {

    Easybuy_user findUserByName(String name) throws Exception;

    //把用户保存到redis中
    void saveLoginUserToRedis(Easybuy_user user,String uuid) throws Exception;

    //获取当前登录的用户信息
    Easybuy_user findLoginUserFromRedis(String uuid) throws Exception;

    //获取用户地址
    List<Easybuy_user_address> selectAddressById(Integer uid) throws Exception;

    int selectVipUser(Integer userId) throws Exception;

    //存储用户新地址
    void insertNewAddress(Easybuy_user_address easybuy_user_address)throws  Exception;
}
